﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Lis.WebApp.Models
{
    public class XfhExceptionHandler : ActionFilterAttribute//HandleErrorAttribute//继承默认的异常处理的类
    {
        //public override void OnException(ExceptionContext filterContext)
        //{
        //    base.OnException(filterContext);
        //    filterContext.HttpContext.Response.Write("发生不可描述的错误");
        //}

        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            filterContext.HttpContext.Response.Write("发生不可描述的错误");
            base.OnActionExecuting(filterContext);
        }
    }
}